﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Soundteller.AudioVisual.Model;
using Soundteller.Visual.Model;

namespace Soundteller.AudioVisual.Tests.Unit.Services.SoundtellerInitializerSpecifications
{
    [TestClass]
    public class WhenInitialize : SoundtellerInitializerTestBase
    {
        protected override InitializeSoundtellerRequest Request
        {
            get { return new InitializeSoundtellerRequest(); }
        }

        protected override void Arrange()
        {
            base.Arrange();
            SongRepository.Setup(r => r.GetActiveSong()).Returns(new Audio.Model.Song());
        }

        [TestMethod]
        public void ThenSoundtellerGraphicShouldBeAdded()
        {
            GraphicRepository.Verify(r => r.Add(It.IsAny<GraphicBase>()), Times.AtLeastOnce());
        }
    }
}
